package com.xysd.express.activity.mine;

import android.view.View;
import android.widget.LinearLayout;

import com.xysd.express.R;
import com.xysd.express.base.BaseActivity;
import com.xysd.express.util.ToastUtil;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.activity_customer)
public class CustomerActivity extends BaseActivity implements View.OnClickListener {
    @ViewInject(R.id.common_layout)
    private LinearLayout common_layout;
    @ViewInject(R.id.order_layout)
    private LinearLayout order_layout;
    @ViewInject(R.id.opintion_layout)
    private LinearLayout opintion_layout;
    @ViewInject(R.id.record_layout)
    private LinearLayout record_layout;

    @Override
    protected void init() {
        setTitleBar("客服中心");
        common_layout.setOnClickListener(this);
        order_layout.setOnClickListener(this);
        opintion_layout.setOnClickListener(this);
        record_layout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.common_layout:
                ToastUtil.show("升级中");
                break;
            case R.id.order_layout:
                ToastUtil.show("升级中");
                break;
            case R.id.opintion_layout:
                startAty(FeedbackActivity.class);
                break;
            case R.id.record_layout:
                ToastUtil.show("升级中");
                break;
        }
    }
}
